package vcp.entity;

import java.util.List;

import vcp.enums.LotStatus;
import vcp.enums.Screen;
import vcp.enums.SiteEnum;
/**
 * <p> site manager class includes getters and setters </p>
 * @author VCP team
 *
 */
public class SiteManagerWorker extends Worker
{

	/**
	 * 
	 */
	private static final long serialVersionUID = -9181773016464998968L;

	/****************************************************************************************************************************
	 *** User methods ***
	 ****************************************************************************************************************************/
	@Override
	public String[] getVisibleTabs()
	{
		return new String[]
				{ Screen.UPDATE_COSTS.toString(),
				Screen.GEN_REPORTS.toString(),
				Screen.LOG_OUT.toString() };
	}

	@Override
	public Screen getInitTabScreen()
	{
		return Screen.UPDATE_COSTS;
	}

	/****************************************************************************************************************************
	 *** Worker methods ***
	 ****************************************************************************************************************************/
	private List<SiteCostUpdates> siteCostUpdates;

	@Override
	public List<SiteCostUpdates> getSiteCostUpdates()
	{
		return this.siteCostUpdates;
	}

	@Override
	public void setSiteCostUpdates(List<SiteCostUpdates> siteCostUpdates)
	{
		this.siteCostUpdates = siteCostUpdates;
	}

	@Override
	public SiteEnum[] getSitesOptions()
	{
		return new SiteEnum[]
				{ this.getSites().get(0).getSite() };
	}

	@Override
	public LotStatus[] getLotEditableStatuses()
	{
		return new LotStatus[]
				{ LotStatus.FREE };
	}

	@Override
	public boolean getSitesOptionsEnable()
	{
		return false;
	}

	@Override
	public boolean hasEditingPrivlige()
	{
		return false;
	}

	@Override
	public boolean canSaveToPdf()
	{
		return false;
	}
}
